#include<bits/stdc++.h>
using namespace std;
#define int long long

int a[105][105];

signed main() {

	int n, m, k, x, y;
	cin >> n >> m >> k;

	for (int i = 1; i <= m; i++) {

		cin >> x >> y;

		// 避免特判
		x++, y++;

		for (int j = x - 2; j <= x + 2; j++)
			a[j][y] = 1;
		for (int j = y - 2; j <= y + 2; j++)
			a[x][j] = 1;
		a[x - 1][y - 1] = a[x - 1][y + 1] = 1;
		a[x + 1][y - 1] = a[x + 1][y + 1] = 1;
	}

	for (int i = 1; i <= k; i++) {
		cin >> x >> y;

		// 避免特判
		x++, y++;

		for (int j = x - 2; j <= x + 2; j++)
			for (int k = y - 2; k <= y + 2; k++)
				a[j][k] = 1;
	}

	int ans = 0;
	for (int i = 2; i <= n + 1; i++)
		for (int j = 2; j <= n + 1; j++)
			ans += a[i][j];
	cout << n*n - ans;
	return 0;
}
